<!--
 * @Author: reiner850593913 103234074+reiner850593913@users.noreply.github.com
 * @Date: 2022-05-09 16:35:03
 * @LastEditors: ReinerLau lk850593913@gmail.com
 * @LastEditTime: 2022-09-05 09:49:17
 * @FilePath: \robot-management-web\src\views\redirect\index.vue
 * @Description: 重定向组件
-->
<template>
  <div>redirect</div>
</template>

<script setup>
import { useRoute, useRouter } from "vue-router";
const route = useRoute();
const router = useRouter();
const { params, query } = route;
const { pathMatch } = params;
router.replace({ path: `/${pathMatch.join("/")}`, query });
</script>
